#include <QApplication>
#include <QSurfaceFormat>
#include "HelloWindow.h"

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);

    QSurfaceFormat format;
    format.setSamples(4);
    format.setMajorVersion(3);
    format.setMinorVersion(3);
    format.setProfile(QSurfaceFormat::CoreProfile);

    HelloWindow w;
    w.setFormat(format);
    w.resize(640, 480);
    w.show();

    w.renderLater();

    return a.exec();
}
